using System;
using System.Diagnostics;
using System.Net;

namespace Catchbase.Service.API
{
    public class HttpRequestGatewayFactory
    {
        public virtual HttpWebRequestGateway Create(Uri uri)
        {
            Debug.Assert(uri != null);
            var request = WebRequest.Create(uri) as HttpWebRequest;
            return new HttpWebRequestGateway(request);
        }
    }
}